package main

import "fmt"

func main() {
	chinese:=90
	english:=80.5
	//error mismatched types int and float64
	//avg:= (chinese+english)/2

	avg:= (chinese+int(english))/2
	//error mismatched types float32 and float64
	//avg2:=(float32(chinese)+english)/2
	avg2:=(float64(chinese)+english)/2
	fmt.Println("中文乱码了")
	fmt.Println(avg)
	fmt.Println(avg2)

	flag:=true
	//can not convert
	fmt.Println(flag)

	str:="feng"
	//can not convert string to int
	//int(str)
	fmt.Println(str)

	result := string(chinese)
	fmt.Println(result)    //print "Z"
}
